package impl

import (
	"database/sql"
	"go_restful_api/conf"
	"log"
)

var (
	Service = &service{}
)

type service struct {
	db  *sql.DB
	log log.Logger
}

func (s *service) Config() error {
	db, err := conf.C().MySQL.GetDb()
	if err != nil {
		return err
	}
	s.db = db
	return nil
}
